<?php
/**
 * @name commentban.php
 * @date 2015-07-08
 * @author LL
 */
namespace haibao\comment\model\data;
class CommentBan extends \haibao\comment\model\data\Base{
    /**
     * 封用户
     */
    const BAN_TYPE_USER = 1;
    
    /**
     * 封IP
     */
    const BAN_TYPE_IP = 2;
     
    /**
     * 已禁止
     */
    const BAN_STATUS_NO = 0;
    /**
     * 已解禁
     */
    const BAN_STATUS_YES = 1;
   
    /**
     * 用户id
     */
    public $UserId;
    /**
     * 用户IP地址
     */
    public $IP;
    /**
     * 时间
     */
    public $FreeTime;
    /**
     * 禁止类型
     */
    public $BanType;
    /**
     * 禁令状态
     */
    public $BanStatus;
    /**
     * 创建人
     */
    public $CreateBy;
    /**
     * 创建时间
     */
    public $CreateTime;
    /**
     * 被冻结的信息
     */
    public $BanInfo;
    
    
    public function __construct(){
        parent::__construct();
        $this->intField('UserId','UserId');
        $this->stringField('IP','IP');
        $this->stringField('FreeTime','FreeTime');
        $this->intField('BanType','BanType',true);
        $this->intField('BanStatus','BanStatus');
        $this->intField('CreateBy','CreateBy',true);
        $this->dateField('CreateTime','CreateTime',true);
        $this->setTableName('CommentBan');
    }
}